package com.lnold.redis.config.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

/**
 * IndexController
 *
 * @author wangyulong
 * @date 2022/1/18
 */
@RestController
public class IndexController {


    @GetMapping("/index")
    public Map<String,String> index(){
        Map<String,String> hashMap = new HashMap<>();
        hashMap.put("version","1.0.0");
        hashMap.put("name","zhangsan");
        return hashMap;
    }
}
